package com.jhws.business.device.bo;

public class DevInfo implements Comparable{
	private String commCode;
	private String commName;
	private String deviceNum;
	private String deviceName;
	private int type;
	private String buildingInfo;
	private String versionNumber; //版本号
	private String status; //在线状态,0表示在线，1表示离线
	private String time; //上线时间或离线时间
	private boolean facePerm;

	public String getCommCode() {
		return commCode;
	}

	public void setCommCode(String commCode) {
		this.commCode = commCode;
	}

	public String getCommName() {
		return commName;
	}

	public void setCommName(String commName) {
		this.commName = commName;
	}

	public String getDeviceNum() {
		return deviceNum;
	}

	public void setDeviceNum(String deviceNum) {
		this.deviceNum = deviceNum;
	}

	public String getDeviceName() {
		return deviceName;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getBuildingInfo() {
		return buildingInfo;
	}

	public void setBuildingInfo(String buildingInfo) {
		this.buildingInfo = buildingInfo;
	}

	public String getVersionNumber() {
		return versionNumber;
	}

	public void setVersionNumber(String versionNumber) {
		this.versionNumber = versionNumber;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public boolean isFacePerm() {
		return facePerm;
	}

	public void setFacePerm(boolean facePerm) {
		this.facePerm = facePerm;
	}

	@Override
	public int compareTo(Object o) {
		DevInfo info = (DevInfo) o;
		if (deviceNum != null && info.getDeviceNum() != null) {
			return deviceNum.compareTo(info.getDeviceNum());
		}
		return 0;
	}
}
